<template>
  <h3 style="color: red"><strong>{{title}}</strong></h3> <br>
  <div v-bind:id="divId">这是一个div</div>
  <div v-bind="attrs">这是一个div2</div>

</template>

<script>
export default {
  name: "Demo",
  data(){
    return{
      title:"7.属性绑定",
      divId:"div1",
      attrs:{
        id:"div2",
        name:"divName"
      }

    }
  }
}
</script>

<style scoped>

</style>